package com.w.m;

import com.w.m.config.MyAopConfg;
import com.w.m.config.MyConfig;
import com.w.m.model.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyAopAnnotationConfigApplicationContextTest {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(MyAopConfg.class);
		Person bean = context.getBean(Person.class);
		System.out.println(bean.getName());
	}
}
